﻿using DDNS.Model.DTO;
using DDNS.Model.Results;
using Refit;

namespace DDNS_IPv4_IPv6.Interface
{
    public interface IDnsPod
    {
        /// <summary>
        /// 记录列表 - 文档地址：https://docs.dnspod.cn/api/record-list/
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        [Post("/Record.List")]
        Task<string> RecordList([Body(BodySerializationMethod.UrlEncoded)] RecordDTO dto);//RecordListResult

        /// <summary>
        /// 更新动态DNS记录 - 文档地址：https://docs.dnspod.cn/api/modify-records/
        /// </summary>
        /// <param name="dto">入参DTO</param>
        /// <returns></returns>
        [Post("/Record.Modify")]
        Task<string> UpdateDDNS([Body(BodySerializationMethod.UrlEncoded)] DomainRecordDTO dto);//DomainRecordResults
    }
}
